home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / GALLERY / VFPGLRY.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-26  |  11.9 KB  |  325 lines

  1. #DEFINE CR        CHR(13)
  2. #DEFINE LF        CHR(10)
  3. #DEFINE CRLF    CHR(13)+CHR(10)
  4. #DEFINE TAB        CHR(9)
  5.  
  6. * Messagebox constants
  7. #DEFINE MSG_YESNO    36
  8. #DEFINE MSG_YES        6
  9. #DEFINE MSG_NO        7
  10.  
  11. *Shortcut menu prompts
  12. #DEFINE MENU_VIEW_LOC                "\<View"
  13. #DEFINE MENU_VIEW_LGICON_LOC        "Lar\<ge Icons"
  14. #DEFINE MENU_VIEW_SMICON_LOC        "S\<mall Icons"
  15. #DEFINE MENU_VIEW_LIST_LOC            "\<List"
  16. #DEFINE MENU_VIEW_DETAILS_LOC        "\<Details"
  17.  
  18. #DEFINE MENU_CUT_LOC                "Cu\<t"
  19. #DEFINE MENU_COPY_LOC                "\<Copy"
  20. #DEFINE MENU_PASTE_LOC                "\<Paste"
  21. #DEFINE MENU_PASTELINK_LOC            "Paste \<Link"
  22. #DEFINE MENU_UNDO_LOC                "\<Undo"
  23.  
  24. #DEFINE MENU_CREATELINK_LOC            "Create \<Link"
  25. #DEFINE MENU_REMOVE_LOC                "Remo\<ve"
  26. #DEFINE MENU_RENAME_LOC                "Rena\<me"
  27. #DEFINE MENU_NEW_LOC                "\<New"
  28. #DEFINE MENU_NEW_FOLDER_LOC            "\<Folder"
  29. #DEFINE MENU_NEW_ITEM_LOC            "\<Item"
  30. #DEFINE MENU_NEW_OBJECT_LOC            "\<Object"
  31. #DEFINE MENU_NEW_LINK_LOC            "\<Link"
  32. #DEFINE MENU_PROPERTIES_LOC            "P\<roperties"
  33.  
  34. #DEFINE MENU_QVIEW_LOC                "\<Quick View"
  35. #DEFINE MENU_SHOW_LOC                "S\<how"
  36. #DEFINE MENU_OPENWITH_LOC            "Op\<en with..."
  37. #DEFINE MENU_PRINT_LOC                "\<Print"
  38.  
  39. #DEFINE MENU_NEWFORM_LOC            "Ne\<w Form"
  40. #DEFINE MENU_NEWREPO_LOC            "Ne\<w Report"
  41. #DEFINE MENU_NEWAPP_LOC                "Ne\<w Application"
  42. #DEFINE MENU_NEWDATA_LOC            "Ne\<w Database"
  43. #DEFINE MENU_NEWTABLE_LOC            "Ne\<w Table"
  44.  
  45. #DEFINE MENU_ACTIVEX_LOC            "Refre\<sh Controls"
  46. #DEFINE MENU_SYSTEM_LOC                "Install on my S\<ystem"
  47. #DEFINE MENU_NEWCLSID_LOC            "Change Regi\<stered Class..."
  48. #DEFINE MENU_ADDFORM_LOC            "Add to \<Form"
  49. #DEFINE MENU_ADDPROJECT_LOC            "\<Add to Project"
  50. #DEFINE MENU_MODIFY_LOC                "Mo\<dify..."
  51. #DEFINE MENU_RUN_LOC                "Ru\<n"
  52. #DEFINE MENU_TYPELIB_LOC            "Vie\<w Type Library..."
  53. #DEFINE MENU_REGREMOTE_LOC            "Re\<gister Remote..."
  54. #DEFINE MENU_VERSION_LOC            "Version \<Information..."
  55.  
  56. #DEFINE MENU_SAMPLE_LOC                "View \<Sample"
  57. #DEFINE MENU_SAMPLEOPEN_LOC            "\<Open"
  58. #DEFINE MENU_SAMPLERUN_LOC            "Ru\<n"
  59. #DEFINE MENU_HELP_LOC                "\<Help..."
  60. #DEFINE MENU_WEBHELP_LOC            "E\<xtended Web Help..."
  61. #DEFINE MENU_PREVIEW_LOC            "Previe\<w"
  62. #DEFINE MENU_OPEN_LOC                "\<Open"
  63. #DEFINE MENU_ADDHYPER_LOC            "Add Hyperlink to \<Form..."
  64. #DEFINE MENU_CLSBROWSER_LOC            "View in \<Browser"
  65. #DEFINE MENU_CLASSFORM_LOC            "Create \<Form..."
  66.  
  67. #DEFINE MENU_SETWALL_LOC            "Set VFP Wallpaper"
  68. #DEFINE MENU_CLEARWALL_LOC            "Clear VFP Wallpaper"
  69. #DEFINE MENU_FORMWALL_LOC            "Set Form \<Wallpaper"
  70.  
  71. #DEFINE MENU_BROWSER_LOC            "\<Browse"
  72. #DEFINE MENU_QUICKFORM_LOC            "\<Quick Form"
  73. #DEFINE MENU_QUICKREPORT_LOC        "Quic\<k Report"
  74.  
  75. #DEFINE MENU_MAILMERGE_LOC            "\<Word Mail Merge"
  76. #DEFINE MENU_PIVOT_LOC                "\<Excel Pivot Table"
  77. #DEFINE MENU_OUTHTML_LOC            "\<Output to HTML"
  78.  
  79. #DEFINE MENU_OPENCATALOG_LOC        "\<Open Catalog"
  80. #DEFINE MENU_ADDCATALOG_LOC            "\<Add Catalog"
  81.  
  82. #DEFINE MENU_BUILD_LOC                "\<Build"
  83.  
  84. * Shared Objects
  85. #DEFINE OBJ_SHARED                    "VFPGLRY!SHAREDOBJ"
  86. #DEFINE OBJ_GLRYUTIL                "VFPGLRY!GLRYUTILOBJ"
  87. #DEFINE OBJ_REGISTRY                "VFPGLRY!REGOBJ"
  88.  
  89.  
  90. #DEFINE WIN_PJX_DESIGN_LOC            "PROJECT MANAGER -"
  91. #DEFINE WIN_SCX_DESIGN_LOC            "FORM DESIGNER -"
  92. #DEFINE WIN_VCX_DESIGN_LOC            "CLASS DESIGNER -"
  93. #DEFINE WIN_FRX_DESIGN_LOC            "REPORT DESIGNER -"
  94. #DEFINE WIN_MNX1_DESIGN_LOC            "MENU DESIGNER -"
  95. #DEFINE WIN_MNX2_DESIGN_LOC            "SHORTCUT DESIGNER -"
  96. #DEFINE WIN_DBC_DESIGN_LOC            "DATABASE DESIGNER -"
  97. #DEFINE WIN_PJX_DESIGN_FLAG            1
  98. #DEFINE WIN_SCX_DESIGN_FLAG            2
  99. #DEFINE WIN_VCX_DESIGN_FLAG            4
  100. #DEFINE WIN_FRX_DESIGN_FLAG            8
  101. #DEFINE WIN_MNX1_DESIGN_FLAG        16
  102. #DEFINE WIN_MNX2_DESIGN_FLAG        32
  103. #DEFINE WIN_DBC_DESIGN_FLAG            64
  104.  
  105. * File Extensions
  106. #DEFINE    LOCALSRV_EXTN        "EXE"
  107. #DEFINE    INPROCSRV_EXTN        "DLL"
  108. #DEFINE    TYPELIB_EXTN        "TLB"
  109. #DEFINE    TYPELIB2_EXTN        "OLB"
  110. #DEFINE    REMOTEREG_EXTN        "VBR"
  111. #DEFINE    CONTROL_EXTN        "OCX"
  112. #DEFINE    PROJECT_EXTN        "PJX"
  113. #DEFINE    FORM_EXTN            "SCX"
  114. #DEFINE    CLASS_EXTN            "VCX"
  115. #DEFINE    REPORT_EXTN            "FRX"
  116.  
  117. #DEFINE    OLECONTROL_CLASS    "OLECONTROL"
  118.  
  119. * _ActiveXFolder
  120. #DEFINE C_DEFACTX_PARENT    "ACTXSYSCTRLS"
  121. #DEFINE REGPROMPT1_LOC    "No ActiveX Controls were found registered in Options dialog. "+;
  122.     "Would you like search the entire Registry?"
  123. #DEFINE MSG_ADDACTIVEX1_LOC "Reading Registry for ActiveX Components..."
  124. #DEFINE MSG_ADDACTIVEX2_LOC    "Processed "
  125. #DEFINE MSG_ADDACTIVEX3_LOC    "% complete"
  126. #DEFINE MSG_ADDACTIVEX4_LOC    "Adding ActiveX Items to Catalog..."
  127. #DEFINE MSG_ADDACTIVEX5_LOC "Searching Registry for available classes..."
  128. #DEFINE TMP_ADDACTIVEXTMP_LOC    "Refreshing catalog..."
  129. #DEFINE HKEY_CLASSES_ROOT        -2147483648  && BITSET(0,31)
  130. #DEFINE HKEY_CURRENT_USER        -2147483647  && BITSET(0,31)+1
  131.  
  132.  
  133. #DEFINE VFP_OPTIONS_KEY1        "Software\Microsoft\VisualFoxPro\"
  134. #DEFINE VFP_OPTIONS_KEY2        "\Options\OLEList"
  135. #DEFINE CLSID_KEY                "CLSID"
  136. #DEFINE PROGID_KEY                "\ProgID"
  137. #DEFINE CONTROL_KEY                "Control"
  138. #DEFINE SERVER_KEY                "Programmable"
  139. #DEFINE SHELL_KEY                "\Shell\"
  140. #DEFINE INPROC_KEY                "InProcServer32"
  141. #DEFINE LOCALSVR_KEY            "LocalServer32"
  142.  
  143. *_ACTIVEXITEM
  144. #DEFINE DEFWIDTH    200
  145. #DEFINE DEFHEIGHT    150
  146. #DEFINE ACTXCONTROL    0
  147. #DEFINE ACTXDLLSVR    1
  148. #DEFINE ACTXEXESVR    2
  149. #DEFINE    MSG_GETCONTROL_LOC    "Select directory for control:"
  150. #DEFINE ERR_BADCOPY_LOC        "Could not copy ActiveX file to local machine. Check for access or write problems."
  151. #DEFINE MSG_GOODINSTALL_LOC    "ActiveX component successfully installed."
  152. #DEFINE MSG_NOVBRFILE_LOC     "Could not locate associated VBR file with ActiveX Server. Make sure it is installed in same location as server."
  153. #DEFINE    ERR_NOACTXFILE_LOC    "File name does not exist for this item."
  154. #DEFINE WINSYS_NT    "\SYSTEM32\"
  155. #DEFINE    WINSYS_W95    "\SYSTEM\"
  156. #DEFINE    MSG_NOREGSVR32_LOC    "Could not locate REGSVR32.EXE in you Windows System folder. Make sure it is properly installed."
  157. #DEFINE REGSVR_FILE            "REGSVR32.EXE"
  158. #DEFINE CLIREG_FILE            "CLIREG32.EXE"
  159. #DEFINE MSG_UPDATEFILE_LOC        "Would you like to update this item to point to the new local file?"
  160. #DEFINE    MSG_REMOTEUPDATE_LOC    "Would you like to update this item from its remote location?"
  161. #DEFINE MSG_NOCLIREG32_LOC     "Could not locate CLIREG32.EXE in you FoxPro folder. Make sure it is properly installed."
  162. #DEFINE    ITEMPICKER_CLASS    "itempicker"
  163. #DEFINE    DATAPICKER_CLASS    "datapicker"
  164. #DEFINE    PROJPICKER_CLASS    "projectpicker"
  165. #DEFINE    VFPGLRY_VCX            "gallery\vfpglry.vcx"
  166. #DEFINE    MSG_NOCLASSREG_LOC    "Component does not appear to be properly registered. Try selecting Install on my System menu option."
  167. #DEFINE    MSG_NOREG_LOC        "** not registered **"
  168. #DEFINE    MSG_ONECLASSREG_LOC    "Only one class is registerd for this component: "
  169.  
  170. #DEFINE    ERRCODE_GOODINSTALL    0
  171. #DEFINE    ERRCODE_CLASSEXISTS    1
  172. #DEFINE    ERRCODE_FAILINSTALL    2
  173.     
  174. *_CLASSITEM
  175. #DEFINE MSG_NOSAMPLE_LOC    "No sample available."
  176. #DEFINE STAT_LOADCLASS_LOC    "Loading Class Designer ..."
  177. #DEFINE    VFP_SCREEN            "SCREEN"
  178. #DEFINE    DEFCLASS            "DEFINE CLASS "
  179. #DEFINE FORMNAMEVAR_LOC        "A public variable for form was created named: "
  180. #DEFINE NOHELP_LOC            "No help available."
  181. #DEFINE ERR_OBJNOTCREATED_LOC    "This class was not created -- possibly due to the INIT event returning a .F. value."
  182.  
  183. #DEFINE VFPHELPFILE        "FOXHELP.CHM"
  184. #DEFINE MSDNHELPFILE    "MSDNVS98.COL"
  185.  
  186. *FILEITEM
  187. #DEFINE SHELLPRINTTO    "printto"
  188. #DEFINE SHELLDEFAULT    "open"
  189. #DEFINE SHELLNEW        "new"
  190. #DEFINE SHELLSHOW        "show"
  191. #DEFINE SHELLPRINT        "print"
  192. #DEFINE QVIEWPATH         "QuickView\."
  193. #DEFINE QVIEWEXEPATH    "QuickView\Shell\Open\Command"
  194. #DEFINE BINARYTYPE        "*Binary*"            && Binary data in any form.
  195.  
  196. *SHAREDITEM
  197. #DEFINE MSG_NOFORM_LOC         "No forms open..."
  198. #DEFINE MSG_NOPROJECT_LOC     "No projects open..."
  199. #DEFINE MSG_FILEADDED_LOC     "File successfully added to project."
  200. #DEFINE MSG_FILEINPJX_LOC     "File already in project." 
  201. #DEFINE MSG_LOCATE_LOC         "Locate:" 
  202. #DEFINE ERR_NOGLRYDLOG_LOC     "One of the gallery's components is in use. Operation could not be performed" 
  203. #DEFINE C_SELECTFORM_LOC    "Select &form"
  204.  
  205. *TEMPLATEITEM
  206. #DEFINE DEFWIZCLASSLIB     "WIZBTNS.VCX"
  207.  
  208. *File Version Strings
  209. #DEFINE FILEVER_COMMENT_LOC         "Comments: "
  210. #DEFINE FILEVER_COMPANY_LOC         "Company Name: "
  211. #DEFINE FILEVER_FILEDESC_LOC         "File Description: "
  212. #DEFINE FILEVER_FILEVER_LOC         "File Version: "
  213. #DEFINE FILEVER_INTERNAL_LOC        "Internal Name: "
  214. #DEFINE FILEVER_COPYRIGHT_LOC         "Legal Copyright: "
  215. #DEFINE FILEVER_TRADMARK_LOC        "Legal Trademarks: "
  216. #DEFINE FILEVER_FILENAME_LOC         "Original Filename: "
  217. #DEFINE FILEVER_PRIVATE_LOC         "Private Build: "
  218. #DEFINE FILEVER_PRODUCTNAME_LOC        "Product Name: "
  219. #DEFINE FILEVER_PRODUCTVER_LOC         "Product Version: "
  220. #DEFINE FILEVER_SPECIAL_LOC            "Special Build: "
  221. #DEFINE FILEVER_LANGUAGE_LOC        "Language: "
  222. #DEFINE FILEVER_NOVERSION_LOC        "No version information found."
  223. #DEFINE MSG_FILEVERSION_LOC            "Version information for: "
  224.  
  225. **Item Type Icons**
  226. #DEFINE ICONFOLDER        "graphics\"
  227. #DEFINE ICO_ACTXEXE        "actxexe.ico"
  228. #DEFINE ICO_ACTXDLL        "actxdll.ico"
  229. #DEFINE ICO_ACTXOCX        "actxocx.ico"
  230. #DEFINE ICO_APPSTYLE    "appstyle.ico"
  231. #DEFINE ICO_AUDIO        "audio.ico"
  232. #DEFINE ICO_CATALOG        "catalog.ico"
  233. #DEFINE ICO_CLASS        "class.ico"
  234. #DEFINE ICO_CLASSLIB    "classlib.ico"
  235. #DEFINE ICO_FILE        "file.ico"
  236. #DEFINE ICO_FORM        "form.ico"
  237. #DEFINE ICO_FRMSTYLE    "frmstyle.ico"
  238. #DEFINE ICO_GIF            "gif.ico"
  239. #DEFINE ICO_HELP        "help.ico"
  240. #DEFINE ICO_JPEG        "jpeg.ico"
  241. #DEFINE ICO_LABEL        "label.ico"
  242. #DEFINE ICO_MENU        "menu.ico"
  243. #DEFINE ICO_MSEXCEL        "excel.ico"
  244. #DEFINE ICO_MSWORD        "word.ico"
  245. #DEFINE ICO_MSOUTLOOK    "outlook.ico"
  246. #DEFINE ICO_MSPOWERPNT    "powerpoint.ico"
  247. #DEFINE ICO_MUSIC        "music.ico"
  248. #DEFINE ICO_PICTURE        "picture.ico"
  249. #DEFINE ICO_PROGRAM        "program.ico"
  250. #DEFINE ICO_PROJECT        "project.ico"
  251. #DEFINE ICO_REPORT        "report.ico"
  252. #DEFINE ICO_RPTSTYLE    "rptstyle.ico"
  253. #DEFINE ICO_TABLE        "table.ico"
  254. #DEFINE ICO_TEXT        "text.ico"
  255. #DEFINE ICO_VIEW        "view.ico"
  256. #DEFINE ICO_WEBDOC        "webdoc.ico"
  257. #DEFINE ICO_WEBFILE        "webfile.ico"
  258. #DEFINE ICO_WEBSITE        "website.ico"
  259.  
  260. * Operating System codes
  261. #DEFINE    OS_W32S                1
  262. #DEFINE    OS_NT                2
  263. #DEFINE    OS_WIN95            3
  264. #DEFINE    OS_MAC                4
  265. #DEFINE    OS_DOS                5
  266. #DEFINE    OS_UNIX                6
  267.  
  268. * DLL Paths for various operating systems
  269. #DEFINE DLLPATH_NT            "\SYSTEM32\"
  270. #DEFINE DLLPATH_WIN95        "\SYSTEM\"
  271.  
  272. * DLL files used to read INI files
  273. #DEFINE    DLL_KERNEL_NT        "KERNEL32.DLL"
  274. #DEFINE    DLL_KERNEL_WIN95    "KERNEL32.DLL"
  275.  
  276. * DLL files used to read registry
  277. #DEFINE    DLL_ADVAPI_NT        "ADVAPI32.DLL"
  278. #DEFINE    DLL_ADVAPI_WIN95    "ADVAPI32.DLL"
  279.  
  280. * DLL files used to read ODBC info
  281. #DEFINE DLL_ODBC_NT            "ODBC32.DLL"
  282. #DEFINE DLL_ODBC_WIN95        "ODBC32.DLL"
  283.  
  284. * Registry roots
  285. #DEFINE HKEY_CLASSES_ROOT           -2147483648  && BITSET(0,31)
  286. #DEFINE HKEY_CURRENT_USER           -2147483647  && BITSET(0,31)+1
  287. #DEFINE HKEY_LOCAL_MACHINE          -2147483646  && BITSET(0,31)+2
  288. #DEFINE HKEY_USERS                  -2147483645  && BITSET(0,31)+3
  289.  
  290. * Misc
  291. #DEFINE APP_PATH_KEY        "\Shell\Open\Command"
  292. #DEFINE OLE_PATH_KEY        "\Protocol\StdFileEditing\Server"
  293. #DEFINE VFP_OPTIONS_KEY1    "Software\Microsoft\VisualFoxPro\"
  294. #DEFINE VFP_OPTIONS_KEY2    "\Options"
  295. #DEFINE CURVER_KEY            "\CurVer"
  296.  
  297. * Error Codes
  298. #DEFINE ERROR_SUCCESS        0    && OK
  299. #DEFINE ERROR_EOF             259 && no more entries in key
  300.  
  301. * Note these next error codes are specific to this Class, not DLL
  302. #DEFINE ERROR_NOAPIFILE        -101    && DLL file to check registry not found
  303. #DEFINE ERROR_KEYNOREG        -102    && key not registered
  304. #DEFINE ERROR_BADPARM        -103    && bad parameter passed
  305. #DEFINE ERROR_NOENTRY        -104    && entry not found
  306. #DEFINE    ERROR_BADKEY        -105    && bad key passed
  307. #DEFINE    ERROR_NONSTR_DATA    -106    && data type for value is not a data string
  308. #DEFINE ERROR_BADPLAT        -107    && platform not supported
  309. #DEFINE ERROR_NOPLAT        -111    && call not supported on this platform
  310.  
  311.  
  312. * Data types for keys
  313. #DEFINE REG_SZ                 1    && Data string
  314. #DEFINE REG_EXPAND_SZ         2    && Unicode string
  315. #DEFINE REG_BINARY             3    && Binary data in any form.
  316. #DEFINE REG_DWORD             4    && A 32-bit number.
  317.  
  318. * Data types labels
  319. #DEFINE REG_BINARY_LOC        "*Binary*"            && Binary data in any form.
  320. #DEFINE REG_DWORD_LOC         "*Dword*"            && A 32-bit number.
  321. #DEFINE REG_UNKNOWN_LOC        "*Unknown type*"    && unknown type
  322.  
  323. #DEFINE APPHOOK_FILE    "APPHOOK.VCX"
  324. #DEFINE APPHOOK_CLASS    "APPHOOK"
  325.